package service;

import java.sql.Timestamp;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import ynjh.admin.entity.User;

/** 
* @author  作者:袁云 
* @date 创建时间：2017年5月24日 上午11:25:40
*/
public class UserServiceTest {
	public static void main(String[] args) {
		ApplicationContext cxt = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService userService = (UserService)cxt.getBean("userService");
		User user = new User("123456", "袁云", 1, new Timestamp(System.currentTimeMillis()));
		userService.addUser(user);
 	}
}
